package com.xxd.spring.boot.demo.wubolin.util;

import com.xxd.spring.boot.demo.wubolin.entity.User;

public class UserManagerUtil {
    public static final ThreadLocal<User> threadLocal= new ThreadLocal<User>();

    public static void set(User user){
        threadLocal.set(user);
    }

    public static User get(){
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }
}
